import { http } from '@/utils/http';
import type { PageParams } from "@/types/global"
import type { HotResult } from "@/types/hot"


type HotPageParams = PageParams & {
  subType?: string
}

export const getHotRecommendAPI = (url: string, data?: HotPageParams) => {
  return http<HotResult>({
    url,
    data,
    method: 'GET',
  })
}
